package csc420groupproject;

import java.io.File;
import javax.swing.filechooser.FileFilter;

/**
 *
 * @author drenz
 */
public class PdfFilter extends FileFilter {
    
    private static final String EXT = "pdf";

    /**
     *
     * @param f
     * @return
     */
    @Override
    public boolean accept(File f) {
        if(f.getName().toLowerCase().endsWith(EXT))
            return true;
        else
            return false;
    }

    /**
     * 
     * @return
     */
    @Override
    public String getDescription() {
        return ".pdf files";
    }
}
